package org.fioma.tree.bytes;

import org.fioma.tree.LabelFactory;

public class LabelRefBytesFactory implements LabelFactory<LabelRefBytes> {

	@Override
	public LabelRefBytes createLabel(String word) {
		return new LabelRefBytes(Tools.transformToBytes(word.toCharArray()));
	}

	public LabelRefBytes createLabel(byte[] word) {
		return new LabelRefBytes(word);
	}
}
